package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.pojo.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  11:40 2020/7/17</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/7/17      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    /**
    * @Date: 11:40 2020/7/17
    * @Param: [id]
    * @return: com.itheima.pojo.User
    * @NewDescription: 根据id查找用户
    **/
    @Override
    public User findUserById(Integer id) {
        return userDao.findUserById(id);
    }
}
